//
//  JKSuspensionViewManager.h
//  JKFloatingBox
//
//  Created by 王冲 on 2019/9/19.
//  Copyright © 2019 王冲. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JKSuspensionView.h"
NS_ASSUME_NONNULL_BEGIN

typedef void(^ClickSuspensionBtnBlock)(void);
typedef void(^SuspensionBlock)(void);

@interface JKSuspensionViewManager : NSObject

+ (JKSuspensionViewManager *)sharedSuspensionViewManager;

/** 悬浮球 */
@property (nonatomic , strong) JKSuspensionView *suspensionBtn;
/** 悬浮球的点击 */
@property (nonatomic, copy) ClickSuspensionBtnBlock clickSuspensionBtnBlock;
/** 悬浮球状态的变化 */
@property (nonatomic, copy) SuspensionBlock suspensionBlock;
/** 悬浮球是否存在 */
@property (nonatomic, assign) BOOL isExist;
/** 改变悬浮球的透明度 */
@property (nonatomic, assign) CGFloat suspensionAlpha;


/** 添加悬浮球 */
- (void)createSuspension;
/** 显示悬浮球 */
- (void)displaySuspension;
/** 隐藏悬浮球 */
- (void)hiddenSuspension;
/** 移除悬浮球 */
- (void)removeSuspension;

@end

NS_ASSUME_NONNULL_END
